package com.yloveg.impl;
import java.util.Date;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.Map;
import com.yloveg.dao.ShopWlInfoMapper;
import com.yloveg.entity.ShopWlInfo;
import com.yloveg.service.ShopWlInfoService;
@Service
public class ShopWlInfoServiceImpl implements ShopWlInfoService {
 
    @Autowired
    private ShopWlInfoMapper shopWlInfoMapper;

	@Override
	public int insertShopWlInfo(ShopWlInfo shopWlInfo) {
		// TODO Auto-generated method stub
		shopWlInfo.setCreateDate(new Date());
		shopWlInfo.setState(1);
		return shopWlInfoMapper.insert(shopWlInfo);
	}

	@Override
	public int updateByPrimaryKeySelective(ShopWlInfo shopWlInfo) {
		// TODO Auto-generated method stub
		shopWlInfo.setUpdateDate(new Date());
		return shopWlInfoMapper.updateByPrimaryKeySelective(shopWlInfo);
	}

	@Override
	public ShopWlInfo selectByPrimaryKey(Long id) {
		// TODO Auto-generated method stub
		return shopWlInfoMapper.selectByPrimaryKey(id);
	}

	@Override
	public List<Map<String,String>> selectByPrimary(ShopWlInfo shopWlInfo) {
		// TODO Auto-generated method stub
		return shopWlInfoMapper.selectByPrimary(shopWlInfo);
	}

}
